package com.example.train_operate.mapper;

import com.example.train_operate.entity.Cabinet;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
* @author 21609
* @description 针对表【tb_cabinet】的数据库操作Mapper
* @createDate 2025-08-13 17:06:39
* @Entity com.example.train_operate.entity.Cabinet
*/
public interface CabinetMapper extends BaseMapper<Cabinet> {

    /**
     * 查询单条试验检查正常的字段个数
     * @return
     */
    Integer selectNormalCount(@Param("cabinetId") Integer cabinetId);

    /**
     * 查询机柜检查正常的字段个数
     * @return
     */
    Integer selectNormalTotalCount();

    /**
     * 查询机柜检查异常个数
     * @return
     */
    Integer selectAbnormalTotalCount();
}




